import { IBizSys } from './ibizsys';
import { getGlobal } from './utils';

/**
 * 初始化全局对象
 *
 * @author chitanda
 * @date 2022-07-19 17:07:37
 * @export
 */
export function install(): void {
  const Global = getGlobal();
  if (Global.ibiz) {
    throw new Error(ibiz.i18n.t('core.noReInstall'));
  }
  Global.ibiz = new IBizSys();
}
